module Merb
  module GlobalHelper
    # helpers defined here available to all views. 
    def ajax_delete(text, url)
       %Q(<a href="#" onclick="if (confirm('Are you sure?')) { new Ajax.Request('#{url}', {asynchronous:true, evalScripts:true, method:'delete'}); }; return false;">#{text}</a>)
     end 
  end
end    